/**
 * create on 2017-03-07 by wang
 */
(function($){      
$.fn.extend({      
	office_modal:function(options){      
	      var defaults = {
	    		  "title":"",
	    	      "content":"",
	    	      "method":""
	      };
	      var opts = $.extend(defaults,options);
	      //modal标题
	      $(this).children("h3").text(opts.title);
	      $(this).children(".content").empty().append(opts.content);
	      window["bind"+opts.method]();//调用绑定函数
	}     
});      
})(jQuery)